package com.yand.oratransmysql.handle;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class OracleTransMysqlApplicationRun implements ApplicationRunner {

    private static final Logger logger = LoggerFactory.getLogger(OracleTransMysqlApplicationRun.class);

    @Autowired
    private com.yand.oratransmysql.service.oracleTableService oracleTableService;

    @Override
    public void run(ApplicationArguments args) throws Exception {

        logger.info("启动开始...");
        oracleTableService.oracleTableHandle();

    }
}
